<?php
declare (strict_types=1);

namespace ffhome\common\ch02;

class ImplementAlpha implements IMethodHolder
{
    public function getInfo($info)
    {
        return "This is NEWS! {$info} <br/>";
    }

    public function sendInfo($info)
    {
        return $info;
    }

    public function calculate($first, $second)
    {
        return $first * $second;
    }

    public function useMethods()
    {
        $ret = $this->getInfo('The sky is falling...');
        $ret .= $this->sendInfo('Vote for Senator Snort!') . '<br/>';
        $ret .= 'You make $' . $this->calculate(20, 15) . ' in your part-time job<br/>';
        return $ret;
    }
}